package com.xunk.equipment.annotation;

import java.lang.annotation.*;

/**
 * @ProjectName: xunk
 * @Package: com.xunk.equipment.annotation
 * @ClassName: MqttListener
 * @Author: yangwendong
 * @Description:
 * @Date: 2021/3/30 15:28
 * @Version: 1.0
 */
@Documented
@Target(ElementType.TYPE)
@Retention(value = RetentionPolicy.RUNTIME)
public @interface MqttListener {
    /**
     * 订阅的topic名
     *
     * @return
     */
    String topic() default "hainayun";

    /**
     * 消息策略
     *
     * @return
     */
    int qos() default 2;

    /**
     * 订阅mqtt服务的类型
     * @return
     */
    int type();
}
